Skip to content

Doc: Correct FAQ explanations - #161663

Merged
methane merged 1 commit into
python:mainfrom
methane:fix-doc-faq2
Nov 12, 2026
Merged

methane merged 1 commit into
python:mainfrom
methane:fix-doc-faq2

Conversation

@methane

@methane methane commented Nov 9, 2026

Copy link
Copy Markdown
Member
  • Clarify that atexit runs cleanup functions when Python exits, rather than when objects are deallocated.
  • Replace the obsolete extension-loading breakpoint with GDB pending breakpoints, allowing users to stop directly in the function they want to debug.
  • Describe reversed() as returning a reverse iterator, rather than copying the sequence.
  • Explain that super() returns a proxy that searches the MRO, rather than the next class itself.
  • Correct self.count to be an instance attribute, rather than a new instance.
  • Remove the mutable Weather caching example: changing the hash of an object already used in a cache key violates hashability requirements and can return stale results.

Validation: built the HTML documentation, ran git diff --check, and verified that a pending GDB breakpoint on math_sin stops when the dynamically loaded function is called.

@methane methane added docs Documentation in the Doc dir skip issue skip news labels Nov 9, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Nov 9, 2026
@methane methane changed the title Doc: Correct FAQ explanations and extension debugging instructions Doc: Correct FAQ explanations Nov 9, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35749169 | 📁 Comparing 55747ce against main (4f64990)

  🔍 Preview build  

3 files changed
± faq/design.html
± faq/extending.html
± faq/programming.html

@methane methane added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 12, 2026
@methane
methane enabled auto-merge (squash) November 12, 2026 08:39
@methane
methane merged commit 9f38636 into python:main Nov 12, 2026
42 checks passed
@methane
methane deleted the fix-doc-faq2 branch November 12, 2026 08:39
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 12, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 12, 2026

Copy link
Copy Markdown

GH-161857 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 12, 2026
@bedevere-app

bedevere-app Bot commented Nov 12, 2026

Copy link
Copy Markdown

GH-161858 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 12, 2026
methane added a commit that referenced this pull request Nov 12, 2026
(cherry picked from commit 9f38636)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
methane added a commit that referenced this pull request Nov 12, 2026
(cherry picked from commit 9f38636)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant